{template "header.html"}
<div class="container">
	<div class="row">
		<div class="col-md-6 col-md-offset-3 d-bian">
			<div class="d-kuan d-gao-100-50"></div>
		    <div class="d-kuan d-wenzi-juzhong d-shang-12">
		        <a href="{SITE_URL}">
		            <img src="{SITE_LOGO}" alt="{SITE_NAME}" class="logo-default">
		        </a>
		    </div>
		</div>
		<div class="container">
			<div class="col-md-6 col-md-offset-3 d-beijing-baise d-yuanjiao-20 d-shang-20">
				<div class="row">
					<div class="col-xs-12">
						<div class="col-xs-4 d-quxian-0 d-wenzi-juzhong d-hanggao-40 d-wenzi-20 d-shang-20 d-yuanjiao-10 {if $_GET['c'] == 'login' && $_GET['m'] != 'find' }d-beijing-hui{/if} ">
							<a href="{dr_member_url('member/index')}" >登录</a>
						</div>
						<div class="col-xs-4 d-quxian-0 d-wenzi-juzhong d-hanggao-40 d-wenzi-20 d-shang-20 d-yuanjiao-10 {if $_GET['c'] == 'register' && $_GET['m']}d-beijing-hui{/if}">
							<a href="{dr_member_url('register/index', ['groupid' => $i])}" >注册</a>
						</div>
						<div class="col-xs-4 d-quxian-0 d-wenzi-juzhong d-hanggao-40 d-wenzi-20 d-shang-20 d-yuanjiao-10 {if $_GET['c'] == 'login' && $_GET['m'] == 'find' }d-beijing-hui{/if}">
							<a href="{dr_member_url('login/find')}" >找回密码</a>
						</div>
					</div>
				</div>
				<div class="row ">
					<div class="col-md-12">
						<form action="" class="content d-shang-20" method="post" name="myform" id="myform">
							{$form}
							<div class="form-body" style="padding-bottom:0">
								{if dr_in_array('username', $register.field)}
								<div class="form-group" id="dr_row_username">
									<div class="input-icon">
										<i class="fa fa-user"></i>
										<input class="form-control placeholder-no-fix input-lg" type="text" autocomplete="off" placeholder="账号" name="data[username]" id="dr_username">
									</div>
								</div>
								{/if}
								{if dr_in_array('email', $register.field)}
								<div class="form-group" id="dr_row_email">
									<div class="input-icon">
										<i class="fa fa-envelope-o"></i>
										<input class="form-control placeholder-no-fix input-lg" type="text" autocomplete="off" placeholder="邮箱" name="data[email]" id="dr_email">
									</div>
								</div>
								{/if}
								{if dr_in_array('phone', $register.field)}
								<div class="form-group" id="dr_row_phone">
									<div class="input-icon">
										<i class="fa fa-bookmark-o"></i>
										<input class="form-control placeholder-no-fix input-lg" type="text" autocomplete="off" placeholder="手机号" name="data[phone]" id="dr_phone">
									</div>
								</div>
								{/if}
								{if dr_in_array('name', $register.field)}
								<div class="form-group" id="dr_row_name">
									<div class="input-icon">
										<i class="fa fa-bookmark-o"></i>
										<input class="form-control placeholder-no-fix input-lg" type="text" autocomplete="off" placeholder="{MEMBER_CNAME}" name="data[name]" id="dr_name">
									</div>
								</div>
								{/if}
								<div class="form-group" id="dr_row_password">
									<div class="input-icon">
										<i class="fa fa-unlock-alt"></i>
										<input class="form-control placeholder-no-fix input-lg" type="password" autocomplete="off" placeholder="密码" name="data[password]" id="dr_password">
									</div>
								</div>
								<div class="form-group" id="dr_row_password2">
									<div class="input-icon">
										<i class="fa fa-unlock-alt"></i>
										<input class="form-control placeholder-no-fix input-lg" type="password" autocomplete="off" placeholder="确认密码" name="data[password2]" id="dr_password2">
									</div>
								</div>
								{$myfield}
								{if $register.sms}
								<div class="form-group" id="dr_row_sms">
									<label class="col-md-2 control-label">短信验证</label>
									<div class="col-md-10">
										<div class="input-group input-large">
											<input class="form-control placeholder-no-fix" type="text" autocomplete="off" id="dr_sms" name="sms">
											<div class="input-group-btn">
												<button class="btn blue" onclick="dr_ajax_url('/index.php?s=member&c=api&m=register_code&id='+$('#dr_phone').val()+'&code='+$('#dr_code').val())" type="button">获取手机验证码</button>
											</div>
										</div>
									</div>
								</div>
								{/if}
								{if $is_img_code}
								<div class="form-group" id="dr_row_code">
									<div class="row">
										<div class="col-md-12">
											<div class="input-group input-large">
												<input class="input-lg form-control placeholder-no-fix" type="text" placeholder="验证码" autocomplete="off" id="dr_code" name="code">
												<div class="input-group-btn fc-code">
													{dr_code(120, 35)}
												</div>
											</div>
										</div>
									</div>
								</div>
								{/if}
								<div class="d-xia-20" style="margin-top:30px">
									<label class="col-md-2 control-label"></label>
									<div class="col-md-9" style="padding-left:5px;">
										<label><button type="button" class="btn red" onclick="dr_ajax_member('{dr_member_url('register/index', ['groupid'=>$groupid])}', 'myform');"> 立即注册</button></label>
										<label class="mt-checkbox mt-checkbox-outline" style="margin-left:20px;">
											<input type="checkbox" name="is_protocol" value="1" checked> 我已阅读并同意
											<span></span>
										</label>
										<label>
											<a href="javascript:dr_show_protocol();">《用户注册协议》</a>
										</label>
									</div>
								</div>
								<div class="d-clear d-xia-20"></div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
</div>


{template "footer.html"}